package cate.game.server.configuration.dao.game;

import cate.game.db.mongo.GuildDao;
import cate.game.role.res.guild.po.GuildPO;
import cate.game.server.configuration.dao.MgIdHexDao;

public class MgGuildDao extends MgIdHexDao<GuildPO> implements GuildDao {

    @Override
    protected void writeIdHex(GuildPO entity, String idHex) {
        entity.uid = idHex;
    }

    @Override
    protected String readIdHex(GuildPO entity) {
        return entity.uid;
    }

    @Override
    protected Class<GuildPO> getEntityClass() {
        return GuildPO.class;
    }
}
